<cfsetting enablecfoutputonly="true"/>
<cfprocessingdirective pageencoding="utf-8">
<!---
	Name         : recent.cfm
	Author       : Raymond Camden 
	Created      : October 29, 2003
	Last Updated : November 10, 2003
	History      : added processingdir (rkc 11/10/03)
	Purpose		 : Display recent entries
--->

<cfset params = structNew()>
<cfset params.maxEntries = 5>
<cfset params.lastXDays = 20>
<cfset entries = application.blog.getEntries(duplicate(params))>
<cfloop query="entries">
	<cfoutput><a href="#selfAction##xfa.byEntry#&entry=#id#">#title#</a><br /></cfoutput>
</cfloop>
<cfif not entries.recordCount>
	<cfoutput>#application.resourceBundle.getResource("norecententries")#</cfoutput>
</cfif>
	
<cfsetting enablecfoutputonly="false"/>